import { User } from '../../entity/mongo/user.entity';
import {filterDto, ResultDto} from '../../common/dto/common.dto'
import { IsEmail, IsNotEmpty } from 'class-validator';

/**
 * list 接口参数文档
 */
export class UserListQuery {
  id?: number;
  ids?: number[];
  search?: string;
  filter?: filterDto
}

export class listUser {
    username:string;
    _id:number;
}
export class UserListResult{
    list: User[];
    readonly total: number;
}


export class UserDto{
    @IsNotEmpty()
    @IsEmail()
    username:string;
    @IsNotEmpty()
    password:string;
}
